<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="logic" uri="http://struts.apache.org/tags-logic" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<h3><bean:message key="content.trips" /></h3>
	<c:forEach var="dev" items="${trips}">
		<html:form action="/deleteTrip" >
        <html:submit value="Delete" />
        <html:text name="LoginForm" property="id" value="${dev.id}"/>
		<input type="text" name="name" value="${dev.name}">
		<input type="text" name="from" value="${dev.from}">
		<input type="text" name="to"   value="${dev.to}"  >
		<input type="text" name="state"   value="${dev.state}"  >
		<input type="text" name="cost" value="${dev.cost}">
		<c:if test="${dev.driver != null}">
			<input type="text" name="driverName" value="${dev.driver.name}">
		</c:if>
		</html:form><br/>
	</c:forEach>     
	<br/>
	        
